import { IsNotEmpty } from 'class-validator';
import { ApiProperty } from '@nestjs/swagger';

export class UserBodyDto {
  @ApiProperty({ description: '账号', example: 'admin' })
  @IsNotEmpty({ message: '请填写账号' })
  username: string;
  @ApiProperty({ description: '密码', example: '123456' })
  @IsNotEmpty({ message: '请填写密码' })
  password: string;
}
